let integer = /^[1-9]\d*$/ //正整数
let patternBank = /^([1-9]{1})(\d{14,18})$/ //银行卡
let idcardReg = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/; //身份证
let passwordReg = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,14}$/;//密码认证
let userNameReg = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,10}$/;//用户名认证
let perReg = /^\d+(\.\d+)?$/; //小数
let phoneReg = /^[1][3,4,5,7,8,9][0-9]{9}$/; //手机号

export { integer, patternBank, idcardReg, passwordReg, perReg, phoneReg, userNameReg }